<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layui</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
    <script src="./layui/layui.js"></script> </head>

<body>
    <input type="test" class="layui-input" id="test">
    <script>
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            // 执行一个laydate实例
            var inst = laydate.render({
                elem: '#test' // 指定元素
            })
        })
    </script>
</body>
</html>